package com.itheima01;

public class Demo05自增自减 {
    public static void main(String[] args) {
        int a = 10;
        int b = 15;

        a++;
        b++;

        System.out.println("a现在的值是：" + a);
        System.out.println("b现在的值是：" + b);

        //++在前面的实质就是先对其使用＋1的操作，然后在对其进行＋1
        ++a;
        ++b;
        System.out.println("a现在的值是：" + a);  //12
        System.out.println("b现在的值是：" + b);  //17

        int i = 10;
        int j = 10;

        //i++;
        //++j;

        //System.out.println(i);  //11

        //System.out.println(j);  //11

        int c =i++ + ++j;
        System.out.println(c);
    }

}
